package com.nanuminc.market.today.detail;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.TextView;

import com.nanuminc.market.NMConstants;
import com.nanuminc.market.R;

public class DetailFullView_ngoc extends Activity {

	TextView product_info_text;
	int pos;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.todaydetailfullview_ngoc);
        
        Intent i = getIntent(); //get the intent that starts this activity
        pos = i.getIntExtra("gallery_pos", 0); //get the extra variable that put before by TodayDetailView_ngoc activity
        // Reference the Gallery view
        ImageView img = (ImageView) findViewById(R.id.productImage_full);
        img.setImageResource(NMConstants.mImageIds[pos]);           
        product_info_text = (TextView) findViewById(R.id.text_product_infomation_full);
		product_info_text.setText(NMConstants.productinfo[pos]);	
	}	
}